

 import '../models/BookChapterRepository.dart';

yGet({Future Function(BookChapterRepository)? load,Function()? finalBlock}) async{
   BookChapterRepository repository = BookChapterRepository();
   await repository.init();
   if(load != null) await load(repository);
   await repository.close();
   if(finalBlock != null) finalBlock();
}

 yPost({Future Function(BookChapterRepository)? load,Function()? finalBlock}) async{
   BookChapterRepository repository = BookChapterRepository();
   await repository.init();
   if(load != null) await load(repository);
   await repository.close();
   if(finalBlock != null) finalBlock();
 }

 yDelete({Future Function(BookChapterRepository)? load,Function()? finalBlock}) async{
   BookChapterRepository repository = BookChapterRepository();
   await repository.init();
   if(load != null) await load(repository);
   await repository.close();
   if(finalBlock != null) finalBlock();
 }